Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: multi::many_till_count combinator #1790

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Laura7089
Copy link

@Laura7089 Laura7089 commented Dec 3, 2024

This PR adds the many_till_count combinator, as I proposed in #1594 - see that issue for more discussion.

I've copied and adapted the tests relevant to many_till for this new combinator - if that's not sufficient, I'm happy to add specialised tests for any edge cases we can think of.

Closes #1594.

A general rationale for the combinator is that it's useful for those cases when the output of parser f in many_till is not important (eg. it's garbage data) or when the alloc feature is not enabled. The combinator follows the previous logic of being half of an alloc/_count pair.

@Laura7089 Laura7089 requested a review from Geal as a code owner December 3, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Combinator: discard_until / drop_until
1 participant